home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
bin
/
findcstr
< prev
next >
Wrap
Text File
|
1995-07-22
|
249b
|
19 lines
:
# findcstr - find a string in a C source file
CASE=
useage() {
echo "useage: findcstr [-y] string"
exit 1
}
[ "$1" ] || useage
[ "$1" = "-y" ] && {
[ "$2" ] || useage
CASE=-y
shift
}
find . -name \*\.\[ch\] -print | xargs grep $CASE "$1"